package redis

import (
	"context"
	"time"
)

const (
	UserIDToID = "user_id:" //userId - ID
	ImgPath    = "img:"     //--src
	SocketCid  = "socket-cid:"
	UserStatus = "user_status:"
)

func (r Redis) SetString(key, value string, duration time.Duration) error {
	return r.Client.Set(context.Background(), key, value, duration).Err()
}
func (r Redis) GetString(key string) (value string, err error) {
	return r.Client.Get(context.Background(), key).Result()
}
